package com.lhb;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Program: spring
 * @Description:
 * @Author: LHB
 * @Version: v0.0.1
 * @Time: 2021-08-05 12:56
 **/
@Component
public class InstanceB {
	@Autowired
	private InstanceA instanceA;


	public InstanceA getInstanceA() {
		return instanceA;
	}


	public void setInstanceA(InstanceA instanceA) {
		this.instanceA = instanceA;
	}

	public InstanceB(InstanceA instanceA) {
		this.instanceA = instanceA;
	}


	public InstanceB() {
		System.out.println("InstanceB实例化");
	}
}
